﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JBrute
{
   /// <summary>
   /// ResultsItem
   /// </summary>
   public class ResultsItem
   {

      public System.Collections.ArrayList kana { get; set; }
      public System.Collections.ArrayList kanji { get; set; }
      public String geninfo { get; set; }
      public System.Collections.ArrayList gloss { get; set; }
      public System.Collections.ArrayList examples { get; set; }
      public long id { get; set; }
      public ResultsItem()
      {
         kana = new System.Collections.ArrayList();
         kanji = new System.Collections.ArrayList();
         gloss = new System.Collections.ArrayList();
         examples = new System.Collections.ArrayList();
      }
      public String english
      {
         get
         {
            String retval = String.Empty;
            const String seps = " / ";
            foreach (String s in gloss)
            {
               retval += s + seps;
            }
            return retval.TrimEnd(seps.ToCharArray());
         }
      }
   }
}
